package com.bms.cfcmms.model.system;

import com.bms.cfcmms.util.annotation.FieldDefine;
import com.bms.cfcmms.util.annotation.TableDefine;
import lombok.Data;

import javax.persistence.Column;

/**
 * Created by carl on 2016/4/15.
 */
@Data
@TableDefine(group = "系统设置", primaryKey = "positionId", id = 9905, title = "职务")
public class Position extends User {
    private static final long serialVersionUID = -5683575494747758863L;

    @FieldDefine(title = "编号", number = 10)
    @Column(length = 10, nullable = false, unique = true)
    private String positionId;

    @FieldDefine(title = "职务名称", nameField = true, number = 20)
    @Column(length = 50, nullable = false, unique = true)
    private String positionName;

    @FieldDefine(title = "主要职能", number = 30)
    @Column(length = 100)
    private String effect;

    @FieldDefine(title = "附加设置", number = 40)
    private String preview;

    @FieldDefine(title = "备注", number = 50)
    private String remark;
}
